﻿@model Sklep.Domain.Entities.Product

<div class="item">
    
    @if(Model.ImageData != null)
    {
        <div style="float: left; margin-right: 20px">
            <img width="75px" height="75px" src="@Url.Action("GetImage","Product",new {Model.ProductID})"/>
        </div>
    }

    <h3>@Model.Name</h3>
    @Model.Description
    
    @using(Html.BeginForm("AddToCart","Cart"))
    {
        @Html.HiddenFor(x=>x.ProductID)
        @Html.Hidden("returnUrl",Request.Url.PathAndQuery)
        <input type="submit" value="+ Dodaj do koszyka"/>
    }

    <h4>@Model.Price.ToString("c")</h4>
</div>



